package edu.neu.swc.cloud.domain;

public class QueryInfo {
    private String query;
    private int fac;
    private int pageNum=1;
    private int pageSize=1;
    private int equ;
    private int ord;


    public QueryInfo() {
    }

    public int getOrd() {
        return ord;
    }

    public void setOrd(int ord) {
        this.ord = ord;
    }

    public int getEqu() {
        return equ;
    }

    public void setEqu(int equ) {
        this.equ = equ;
    }

    public int getFac() {
        return fac;
    }

    public void setFac(int fac) {
        this.fac = fac;
    }

    public QueryInfo(String query, int pageNum, int pageSize,int fac) {
        this.query = query;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.fac = fac;
    }

    public QueryInfo(String query, int fac, int pageNum, int pageSize, int equ, int ord) {
        this.query = query;
        this.fac = fac;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.equ = equ;
        this.ord = ord;
    }

    public QueryInfo(String query, int fac, int pageNum, int pageSize, int equ) {
        this.query = query;
        this.fac = fac;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.equ = equ;
    }

    public QueryInfo(String query, int pageNum, int pageSize) {
        this.query = query;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public String getQuery() {
        return query;
    }

    public int getPageNum() {
        return pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "QueryInfo{" + "query='" + query + '\'' + ", fac=" + fac + ", pageNum=" + pageNum + ", pageSize=" + pageSize + ", equ=" + equ + '}';
    }
}
